package com.holly.unit.bpmn.activiti.listener;

import lombok.extern.slf4j.Slf4j;
import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.ExecutionListener;

/**
 * 类描述: 多实例事件监听
 *
 * @author fxr
 * @version 1.0.0
 * @date 2022/2/8 9:47
 */
@Slf4j
public class MultiInstanceTaskHandlerListener implements ExecutionListener {

    @Override
    public void notify(DelegateExecution execution) throws Exception {
        log.info("任务监听类开始执行");
        String processDefinitionId = execution.getProcessDefinitionId();
        log.info("流程定义的id："+processDefinitionId);
    }

}
